//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================

#ifndef __ELASTOS_MEMORY_H__
#define __ELASTOS_MEMORY_H__

EXTERN_C int    CDECL memcmp(const void *, const void *, size_t);
EXTERN_C void * CDECL memcpy(void *, const void *, size_t);
EXTERN_C void * CDECL memset(void *, int, size_t);
EXTERN_C void * CDECL memchr(const void *, int, size_t);

#if defined (_GNUC)
#define _alloca __builtin_alloca
#else
EXTERN_C void *  CDECL _alloca(size_t);
#endif

#endif //__ELASTOS_MEMORY_H__
